package com.glsc.ngateway.common.api.filetransfer.enums;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;


@AllArgsConstructor
@NoArgsConstructor
public enum CommonTypeEnum {
    NGATEWAY_PLATFORM("网关平台端", "ngatewayPlatform"),
    NGATEWAY_AMDOC("amdoc服务", "ngatewayAmdoc"),
    NGATEWAY_FILE_TRANSFER("文件服务", "ngatewayFileTransfer"),
    NGATEWAY_FLOWABLE("工作流服务", "ngatewayFlowable"),
    NGATEWAY_OPMANAGE("运管系统", "ngatewayOpmanage"),
    NGATEWAY_SHORT_MESSAGE("消息服务", "ngatewayShortMessage"),
    AM_PRODUCT("资管产品系统", "amproduct"),
    ;


    public static CommonTypeEnum findByCode(String systemCode) {
        for (CommonTypeEnum commonTypeEnum : CommonTypeEnum.values()) {
            if (commonTypeEnum.getSystemCode().equals(systemCode)) {
                return commonTypeEnum;
            }
        }
        return null;
    }

    private String systemName;
    private String systemCode;


    public String getSystemName() {
        return systemName;
    }

    public String getSystemCode() {
        return systemCode;
    }
}
